package com.lineage.server.serverpackets;

public class S_SellHouse extends ServerBasePacket {
  private byte[] _byte;
  
  public S_SellHouse(int objectId, String houseNumber) {
    this._byte = null;
    buildPacket(objectId, houseNumber);
  }
  
  private void buildPacket(int objectId, String houseNumber) {
    writeC(136);
    writeD(objectId);
    writeD(0);
    writeD(100000);
    writeD(100000);
    writeD(2000000000);
    writeH(0);
    writeS("agsell");
    writeS("agsell " + houseNumber);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
